//
//  MemberModel.m
//  jiyujiaProgram
//
//  Created by Jame on 15/12/2.
//  Copyright © 2015年 中良 赵. All rights reserved.
//

#import "MemberModel.h"

@implementation MemberModel

- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:self.errCode forKey:@"errCode"];
    [aCoder encodeObject:self.errMsg forKey:@"errMsg"];
    [aCoder encodeObject:self.member_Id forKey:@"member_Id"];
    [aCoder encodeObject:self.member_no forKey:@"member_no"];
    [aCoder encodeObject:self.mobile forKey:@"mobile"];
    [aCoder encodeObject:self.qq forKey:@"qq"];
    [aCoder encodeObject:self.email forKey:@"email"];
    [aCoder encodeObject:self.name forKey:@"name"];
    [aCoder encodeObject:self.imgId forKey:@"imgId"];
    [aCoder encodeObject:self.imgUrl forKey:@"imgUrl"];
    [aCoder encodeObject:self.age forKey:@"age"];
    [aCoder encodeObject:self.birthday forKey:@"birthday"];
    [aCoder encodeObject:self.constellation forKey:@"constellation"];
    [aCoder encodeObject:self.sex forKey:@"sex"];
    [aCoder encodeObject:self.hobbies forKey:@"hobbies"];
    [aCoder encodeObject:self.country forKey:@"country"];
    [aCoder encodeObject:self.province forKey:@"province"];
    [aCoder encodeObject:self.city forKey:@"city"];
    [aCoder encodeObject:self.area forKey:@"area"];
    [aCoder encodeObject:self.job forKey:@"job"];
    [aCoder encodeObject:self.school forKey:@"school"];
    [aCoder encodeObject:self.signature forKey:@"signature"];
    [aCoder encodeObject:self.homepage_background_imgId forKey:@"homepage_background_imgId"];
    [aCoder encodeObject:self.homepage_background_imgUrl forKey:@"homepage_background_imgUrl"];
    [aCoder encodeObject:self.forum_background_imgId forKey:@"forum_background_imgId"];
    [aCoder encodeObject:self.forum_background_imgUrl forKey:@"forum_background_imgUrl"];
    [aCoder encodeObject:self.member_type forKey:@"member_type"];
    [aCoder encodeObject:self.createTime forKey:@"createTime"];
}


- (id)initWithCoder:(NSCoder *)aDecoder
{
    if (self = [super init]) {
        self.errCode = [aDecoder decodeObjectForKey:@"errCode"];
        self.errMsg = [aDecoder decodeObjectForKey:@"errMsg"];
        self.member_Id = [aDecoder decodeObjectForKey:@"member_Id"];
        self.member_no = [aDecoder decodeObjectForKey:@"member_no"];
        self.mobile = [aDecoder decodeObjectForKey:@"mobile"];
        self.qq = [aDecoder decodeObjectForKey:@"qq"];
        self.email = [aDecoder decodeObjectForKey:@"email"];
        self.name = [aDecoder decodeObjectForKey:@"name"];
        self.imgId = [aDecoder decodeObjectForKey:@"imgId"];
        self.imgUrl = [aDecoder decodeObjectForKey:@"imgUrl"];
        self.age = [aDecoder decodeObjectForKey:@"age"];
        self.birthday = [aDecoder decodeObjectForKey:@"birthday"];
        self.constellation = [aDecoder decodeObjectForKey:@"constellation"];
        self.sex = [aDecoder decodeObjectForKey:@"sex"];
        self.hobbies = [aDecoder decodeObjectForKey:@"hobbies"];
        self.country = [aDecoder decodeObjectForKey:@"country"];
        self.province = [aDecoder decodeObjectForKey:@"province"];
        self.city = [aDecoder decodeObjectForKey:@"city"];
        self.area = [aDecoder decodeObjectForKey:@"area"];
        self.job = [aDecoder decodeObjectForKey:@"job"];
        self.school = [aDecoder decodeObjectForKey:@"school"];
        self.signature = [aDecoder decodeObjectForKey:@"signature"];
        self.homepage_background_imgId = [aDecoder decodeObjectForKey:@"homepage_background_imgId"];
        self.homepage_background_imgUrl = [aDecoder decodeObjectForKey:@"homepage_background_imgUrl"];
        self.forum_background_imgId = [aDecoder decodeObjectForKey:@"forum_background_imgId"];
        self.forum_background_imgUrl = [aDecoder decodeObjectForKey:@"forum_background_imgUrl"];
        self.member_type = [aDecoder decodeObjectForKey:@"member_type"];
        self.createTime = [aDecoder decodeObjectForKey:@"createTime"];
    }
    return self;
}

@end
